package com.yeeverse.sdk.util;/**
 * @Description:
 * @author kai.yang
 * @since 2020-12-30 11:21
 */

import org.apache.log4j.Logger;

/**
 * @Description: sdk常量字典表
 * @Author: kai.yang
 * @Date: 2020-12-30 11:21
 */
public class SdkContants {

    private static final Logger logger = Logger.getLogger(SdkContants.class);
    public static String CASHIER_URL = "/rest/yv/cashier";
    public static String QUERY_ORDER_URL = "/rest/yv/queryOrder";
    public static String QUERY_MERGE_URL = "/rest/yv/mergeQuery";
    public static String UNION_PAY_URL = "/rest/union/pay";
    public static String REFUND_URL = "/rest/yv/refund";
    public static String QUERY_REFUND_URL = "/rest/yv/queryRefund";
    public static String CLOSE_URL = "/rest/yv/close";
    public static String DOWNLOAD_URL = "/rest/yv/downloadFile";
    public static String UPLOAD_URL = "/rest/csg/v1/upload";
    public static String REGIST_URL = "/rest/yv/regist";
    public static String REGIST_QUERY_URL = "/rest/yv/registQuery";
    public static String API_PAY_URL = "/rest/yv/apiPay";
    /**
     * 链账户创建
     */
    public static String NFT_CREATE_ACCOUNT_URL = "/V2/rest/nft/createAccount";
    /**
     * 链上账户创建查询
     */
    public static String NFT_QUERY_ACCOUNT_URL = "/V2/rest/nft/queryAccount";
    /**
     * 用户NFT藏品查询
     */
    public static String NFT_QUERY_ACCOUNT_NFT_URL = "/V2/rest/nft/queryAccountNFT";
    /**
     * 铸造发行
     */
    public static String NFT_CREATE_NFT_URL = "/V2/rest/nft/createNFT";
    /**
     * 创建藏品系列
     */
    public static String NFT_CREATE_SERIES_URL = "/V2/rest/nft/createSeries";
    /**
     * NFT转移
     */
    public static String NFT_TRANSFER_URL = "/V2/rest/nft/nftTransfer";
    /**
     * NFT销毁
     */
    public static String NFT_DESTORY_URL = "/V2/rest/nft/nftDestory";
    /**
     * 查询NFT藏品铸造结果
     */
    public static String NFT_QUERY_CREATE_NFT_URL = "/V2/rest/nft/queryCreateNFT";
    /**
     * 查询NFT操作结果(转移或销毁)
     */
    public static String NFT_QUERY_NFT_OPERATE_URL = "/V2/rest/nft/queryNFTOperate";
    static PropertiesUtils prop;

    static {

        try {
            prop = new PropertiesUtils("uri");
            CASHIER_URL = prop.getProperty("cashierUrl");
            QUERY_ORDER_URL = prop.getProperty("queryOrderUrl");
            UNION_PAY_URL = prop.getProperty("unionPayUrl");

            REFUND_URL = prop.getProperty("refundUrl");
            QUERY_REFUND_URL = prop.getProperty("queryRefundUrl");
            CLOSE_URL = prop.getProperty("closeUrl");

            DOWNLOAD_URL = prop.getProperty("downloadUrl");
            UPLOAD_URL = prop.getProperty("uploadUrl");
            REGIST_URL = prop.getProperty("registUrl");
            REGIST_QUERY_URL = prop.getProperty("registQueryUrl");
            API_PAY_URL = prop.getProperty("apiPayUrl");
        } catch (Exception e) {
            logger.warn("未找到uri配置文件，采用默认配置");

        }
    }

}
